From 96a5e5d7fe6af05163de84b522effb6f1893dbaf Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 22 Jul 2023 17:02:51 +0100 Subject: Support string addition in Patio code gen --- ...mpiler.testing.snapshots.Snapshotter)].expected | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected new file mode 100644 index 00000000..a0ddbbd8 --- /dev/null +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenIntAddTests]/[method:canGenerateCodeForStringAdd(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -0,0 +1,23 @@ +Compilation unit elements: + +( + function-decl + "shed__runtime__string_add" + params=(("left" int) ("right" int)) + return-type=int +) + +Locals: + * ("tmp__0" int) + +Args: + +Instructions: + +( + (call (local "tmp__0") "shed__runtime__string_add" ((local "b") (local "c"))) +) + +Temporary stack: + * tmp__0 + * a -- cgit v1.2.3